/*
 * meituan.com Inc.
 * Copyright (c) 2010-2018 All Rights Reserved.
 */
package jdk;

import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;

/**
 * <p>
 *
 * </p>
 * @author LvJing
 * @version $Id:A.java v1.0 2018-12-16 10:32 LvJing Exp $
 */
public class A {

    private Boolean switchs = true;

    public void setSwitchs(Boolean switchs) {
        this.switchs = switchs;
    }

    public static void main(String[] args) throws Exception {
        //        Field switchs = A.class.getField("switchs");
        //        A a = new A();
        //        switchs.set(a, false);

        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        try {
            formatter.parse("2018-12-01 00:00:00");
        } catch (DateTimeParseException e) {
            e.printStackTrace();
        }
    }
}
